﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Globalization;
using System.Threading;


namespace IDEWEEk2
{
    public partial class Form1 : Form
    {
        Icon OrigIcon;
        public Form1()
        {

            InitializeComponent();
            
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void btnNewForm_Click(object sender, EventArgs e)
        {
            Form2 f2 = new Form2();
            f2.Show();
        }

        private void btnchnge_Click(object sender, EventArgs e)
        {

            OrigIcon = this.Icon;
            this.Icon = Properties.Resources.ICON1;
        }

        private void btnReset_Click(object sender, EventArgs e)
        {
            this.Icon = OrigIcon;
        }
        private void ChangeLanguage(string lang)
        {
            foreach (Control c in this.Controls)
            {
                ComponentResourceManager resources =
                      new ComponentResourceManager(typeof(Form1));
                resources.ApplyResources(c, c.Name, new CultureInfo(lang));
            }
        }

        private void btnLanguage_Click(object sender, EventArgs e)
        {
        this.ChangeLanguage("fr-FR");
        }

        private void label1_Click(object sender, EventArgs e)
        {
            

        }

        private void btnCallClass_Click(object sender, EventArgs e)
        {
            int[] numbers = new int[10];
            Class.MakeRandomNumber(numbers);
            label1.Text = numbers[0] + ", " + numbers[1] + ", " + numbers[2];
        }

    
    
       }
}

